
package graphics3d.figures;

import graphics3d.Matrix;
import graphics3d.Object3d;
import graphics3d.Ribs;


public class House {

    public static Object3d getFigure() {
        
        double[] house_vertexes = new double[]{ 1, 11, 11,  1,  1, 11, 11,  1,  6,  6,  3,  3,  5,  5, 11, 11, 11, 11,
                                                1,  1,  1,  1, 11, 11, 11, 11, 16, 16,  1,  6,  6,  1,  4,  8,  8,  4,
                                                1,  1, 11, 11,  1,  1, 11, 11,  1, 11, 11, 11, 11, 11,  7,  7,  5,  5,
                                                1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1};
        boolean[] house_ribs = new boolean[]{ true, false,  true,  true, false, false, false, false, false, false, false, false, false, false, false, false, false,
                                                     true, false, false,  true, false, false, false, false, false, false, false, false, false, false, false, false,
                                                            true, false, false,  true, false, false, false, false, false, false, false, false, false, false, false,
                                                                  false, false, false,  true, false, false, false, false, false, false, false, false, false, false,
                                                                          true, false,  true,  true, false, false, false, false, false, false, false, false, false,
                                                                                 true, false,  true, false, false, false, false, false, false, false, false, false,
                                                                                        true, false,  true, false, false, false, false, false, false, false, false,
                                                                                              false,  true, false, false, false, false, false, false, false, false,
                                                                                                      true, false, false, false, false, false, false, false, false,
                                                                                                            false, false, false, false, false, false, false, false,
                                                                                                                    true, false,  true, false, false, false, false,
                                                                                                                           true, false, false, false, false, false,
                                                                                                                                  true, false, false, false, false,
                                                                                                                                        false, false, false, false,
                                                                                                                                                true, false,  true,
                                                                                                                                                       true, false,
                                                                                                                                                              true};
        Object3d house = new Object3d(new Matrix(18, house_vertexes), new Ribs(18, house_ribs));
        
        return house;
        
    }
    
}
